﻿using System;

namespace Yozeev.IO.ExcelHelper.Attributes
{
    /// <summary>
    /// 自定义注解，用于标识导入Excel文件的模型,只能在类上标记
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
    public class ExcelModel : Attribute
    {
        /// <summary>
        /// 注解的属性，用于标注表头有多少行
        /// </summary>
        private int _headerLine;

        public ExcelModel(int headerLine)
        {
            this._headerLine = headerLine;
        }

        public int HeaderLine
        {
            get { return _headerLine; }
            set { _headerLine = value; }
        }
    }
}
